package com.puti.doctor.service.impl;

import com.puti.doctor.domian.HospitalDoctorInfo;
import com.puti.doctor.domian.PatientInfo;
import com.puti.doctor.mapper.AccountManagementMapper;
import com.puti.doctor.service.AccountManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountManagementServiceImpl implements AccountManagementService {

    @Autowired
    private AccountManagementMapper accountManagementMapper;

    //账号管理-医生列表
    @Override
    public List<HospitalDoctorInfo> selectHospitalDoctorInfoList(HospitalDoctorInfo hospitalDoctorInfo) {
        return accountManagementMapper.selectHospitalDoctorInfoList(hospitalDoctorInfo);
    }

    //账号管理-医生列表-添加医生
    @Override
    public Integer insertHospitalDoctorInfo(HospitalDoctorInfo hospitalDoctorInfo) {
        return accountManagementMapper.insertHospitalDoctorInfo(hospitalDoctorInfo);
    }

    //账号管理-医生列表-删除医生
    @Override
    public Integer deleteHospitalDoctorInfoByDoctorId(Integer doctorId) {
        return accountManagementMapper.deleteHospitalDoctorInfoByDoctorId(doctorId);
    }

    @Override
    public HospitalDoctorInfo selectHospitalDoctorInfoByDoctorId(Integer doctorId) {
        return accountManagementMapper.selectHospitalDoctorInfoByDoctorId(doctorId);
    }

    @Override
    public Integer updateHospitalDoctorInfo(HospitalDoctorInfo hospitalDoctorInfo) {
        return accountManagementMapper.updateHospitalDoctorInfo(hospitalDoctorInfo);
    }

    @Override
    public List<PatientInfo> selectPatientInfoList(PatientInfo patientInfo) {
        return accountManagementMapper.selectPatientInfoList(patientInfo);
    }


}
